package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupDiscountHouseSigningorderMapper;
import com.ruoyi.yipaiju.domain.GroupDiscountHouseSigningorder;
import com.ruoyi.yipaiju.service.IGroupDiscountHouseSigningorderService;

/**
 * fo_group_discount_house_signingorderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupDiscountHouseSigningorderServiceImpl implements IGroupDiscountHouseSigningorderService 
{
    @Autowired
    private GroupDiscountHouseSigningorderMapper groupDiscountHouseSigningorderMapper;

    /**
     * 查询fo_group_discount_house_signingorder
     * 
     * @param id fo_group_discount_house_signingorder主键
     * @return fo_group_discount_house_signingorder
     */
    @Override
    public GroupDiscountHouseSigningorder selectGroupDiscountHouseSigningorderById(Long id)
    {
        return groupDiscountHouseSigningorderMapper.selectGroupDiscountHouseSigningorderById(id);
    }

    /**
     * 查询fo_group_discount_house_signingorder列表
     * 
     * @param groupDiscountHouseSigningorder fo_group_discount_house_signingorder
     * @return fo_group_discount_house_signingorder
     */
    @Override
    public List<GroupDiscountHouseSigningorder> selectGroupDiscountHouseSigningorderList(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder)
    {
        return groupDiscountHouseSigningorderMapper.selectGroupDiscountHouseSigningorderList(groupDiscountHouseSigningorder);
    }

    /**
     * 根据业务主键查询一条记录：fo_group_discount_house_signingorder
     *
     * @param groupDiscountHouseSigningorder fo_group_discount_house_signingorder
     * @return fo_group_discount_house_signingorder
     */
    @Override
    public GroupDiscountHouseSigningorder selectOneGroupDiscountHouseSigningorder(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder)
    {
        return groupDiscountHouseSigningorderMapper.selectOneGroupDiscountHouseSigningorder(groupDiscountHouseSigningorder);
    }

    /**
     * 新增fo_group_discount_house_signingorder
     * 
     * @param groupDiscountHouseSigningorder fo_group_discount_house_signingorder
     * @return 结果
     */
    @Override
    public int insertGroupDiscountHouseSigningorder(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder)
    {
        return groupDiscountHouseSigningorderMapper.insertGroupDiscountHouseSigningorder(groupDiscountHouseSigningorder);
    }

    /**
     * 修改fo_group_discount_house_signingorder
     * 
     * @param groupDiscountHouseSigningorder fo_group_discount_house_signingorder
     * @return 结果
     */
    @Override
    public int updateGroupDiscountHouseSigningorder(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder)
    {
        return groupDiscountHouseSigningorderMapper.updateGroupDiscountHouseSigningorder(groupDiscountHouseSigningorder);
    }

    @Override
    public int updateGroupDiscountHouseSigningorderCondition(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder, GroupDiscountHouseSigningorder groupDiscountHouseSigningorderCondition)
    {
        return groupDiscountHouseSigningorderMapper.updateGroupDiscountHouseSigningorderCondition(groupDiscountHouseSigningorder, groupDiscountHouseSigningorderCondition);
    }

    /**
     * 批量删除fo_group_discount_house_signingorder
     * 
     * @param ids 需要删除的fo_group_discount_house_signingorder主键
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseSigningorderByIds(Long[] ids)
    {
        return groupDiscountHouseSigningorderMapper.deleteGroupDiscountHouseSigningorderByIds(ids);
    }

    /**
     * 删除fo_group_discount_house_signingorder信息
     * 
     * @param id fo_group_discount_house_signingorder主键
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseSigningorderById(Long id)
    {
        return groupDiscountHouseSigningorderMapper.deleteGroupDiscountHouseSigningorderById(id);
    }

    /**
     * 条件删除fo_group_discount_house_signingorder
     *
     * @param groupDiscountHouseSigningorder fo_group_discount_house_signingorder
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseSigningorderByCondition(GroupDiscountHouseSigningorder groupDiscountHouseSigningorder)
    {
        return groupDiscountHouseSigningorderMapper.deleteGroupDiscountHouseSigningorderByCondition(groupDiscountHouseSigningorder);
    }

}
